package com.sskj.api.vo.req;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Schema(description = "分页请求")
@Data
public class PageReq {

    @Schema(description = "页码")
    private Long pageNum;

    @Schema(description = "条数")
    private Long pageSize;

    public Long getPageNum() {
        return pageNum == null ? 1 : pageNum;
    }

    public Long getPageSize() {
        return pageSize == null ? 10 : pageSize;
    }
}
